package com.znsd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 商品颜色表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("spu_color")
public class SpuColor extends Model<SpuColor> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品id
     */
    @TableField("spu_id")
    private Long spuId;
    /**
     * 商品颜色
     */
    private String color;
    /**
     * 文件名
     */
    @TableField("file_name")
    private String fileName;
    /**
     * 是否启用
     */
    @TableField("is_enabled")
    private String isEnabled;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SpuColor{" +
        "id=" + id +
        ", spuId=" + spuId +
        ", color=" + color +
        ", fileName=" + fileName +
        ", isEnabled=" + isEnabled +
        "}";
    }
}
